<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        ul {
            list-style: none;
        }
        
        body {
            background-color: #000;
        }
        
        .box {
            width: 600px;
            height: 200px;
            position: relative;
            margin: 100px auto;
            overflow: hidden;
        }
        
        .box ul {
            width: 9999px;
            position: absolute;
            left: 0;
            top: 0;
            animation: play 8s linear infinite;
            /* overflow: hidden; */
        }
        
        .box ul li {
            float: left;
            border: 2px solid black;
        }
        
        @keyframes play {
            0% {
                left: 0;
            }
            100% {
                left: -1200px;
            }
        }
        
        .box:hover ul {
            animation-play-state: paused;
        }
        
        .box:hover li {
            opacity: 0.5;
        }
        
        .box li:hover {
            opacity: 1;
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li><img src="./images/beauty01.jpg" width="300px" height="200px" alt="" srcset=""></li>
            <li><img src="./images/beauty02.jpg" width="300px" height="200px" alt="" srcset=""></li>
            <li><img src="./images/beauty03.jpg" width="300px" height="200px" alt="" srcset=""></li>
            <li><img src="./images/beauty04.jpg" width="300px" height="200px" alt="" srcset=""></li>
            <li><img src="./images/beauty01.jpg" width="300px" height="200px" alt="" srcset=""></li>
            <li><img src="./images/beauty02.jpg" width="300px" height="200px" alt="" srcset=""></li>
        </ul>
    </div>
</body>

</html>